<?php /*
  Template Name: mundoataka
 */ ?>
<?php get_header(); ?>

<div class="container">
    <div class="nine columns">

        <ul>

            <?php
            if (have_posts()) :
                $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                query_posts("category_name=ataka&paged=$paged");
                while (have_posts()) : the_post();
                    ?>      

                    <li>
                        <article class="post" id="post-<?php the_ID(); ?>">


                            <?php
                            if (has_post_thumbnail()) {
                                ?>

                                <a href="<?php the_permalink() ?>"><img class="scale-with-grid" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&amp;h=250&amp;w=250&amp;zc=1" alt=""/></a>
                            <?php } else { ?>
                                <a href="<?php the_permalink() ?>"><img class="scale-with-grid" src="<?php bloginfo('template_directory'); ?>/images/dummy.jpg" alt="" /></a>
                            <?php } ?>

                            <div class="cont">

                                <div class="btitle">

                                    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>

                                </div>

                                <div class="boxentry">

                                    <?php the_content('Leer Mas+'); ?><iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:76px; height:30px"></iframe>


                                </div>
                            </div>

                        </article>

                    </li>
                <?php endwhile; ?>
            <?php endif; ?>
            <?php wp_pagenavi(); ?> 


            <div class="clear"></div>
        </ul>

    </div>

                <?php include (TEMPLATEPATH . '/atakabar.php'); ?>
</div>

<?php get_footer(); ?>